package com.dexin.yang.base.service;

import java.io.Serializable;
import java.util.List;

public interface IBaseService <T extends Serializable,ID>{
	public List<T> createQuery(final String queryString); 
	public List<T> getAll(final Class<? extends T> clazz);   
    public ID save(final T model);   
    public <T>void update(final T model);   
    public <T>void delete(final T model);  
    public T get(final T model);
    public <T> T get(final Class<? extends T> clazz, final Long id);
    public List<T> getByPage(final String hql,final Object params,final Integer start , final Integer size);
    
}
